<!--
  To change this template, choose Tools | Templates
  and open the template in the editor.
-->

<%@ page contentType="text/html;charset=UTF-8" %>

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Sample title</title>
    <meta name="layout" content="main" />
  </head>
  <body>
      <div id="pageBody">
          <h1>Search Results</h1>

          ${flash.message}

          <br/><br/>
          <table>
              <tr>
                <th></th> 
                <th>Product Name</th>
                <th>Description</th>

              </tr>

              <g:each in="${productList}" var="instance" status="s">

                <tr>
                  <input type="hidden" name="id" value="${instance.id}" />
                  <td><img src="../${instance.imageUrl}" alt="${instance.productName} Image" height="75px"/></td>
                  <td><a href="http://localhost:8088/WineXpressClient/retrieveProductDetail?id=${instance.id}"/>${instance.productName}</a></td>
                  <td>${instance.description}</td>
                  <td>

                  </td>

              </tr>

              </g:each>
          </table>
      </div>
  </body>
</html>
